package com.woniu.server.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.server.dto.ProductInfoDto;
import com.woniu.server.pojo.ProjectProduct;

import java.util.List;

/**
* @author a
* @description 针对表【project_product(产品表)】的数据库操作Mapper
* @createDate 2024-11-22 09:37:04
* @Entity com.woniu.server.pojo.ProjectProduct
*/
public interface ProjectProductMapper extends BaseMapper<ProjectProduct> {

    List<ProductInfoDto> queryAllProduct();

    ProductInfoDto queryProductByCode(String productCode);

    void reduceStock(String productCode, Integer reduceNum);
}




